﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

/// <summary>
///Common 的摘要说明
/// </summary>
public class Common
{
    public static int MAXYEAR = 2020;
    public static int MINYEAR = 2000;
    public static String[] Metrics = { "温度", "湿度", "弧垂", "气压", "覆冰厚度", "最大允许电流", "导线温度", "风速", "杆塔倾斜度","雨量","日照","风向" };
    public static String[] Metrics_T1 = { "杆塔倾斜度", "红外报警1", "红外报警2"};
    public static String[] Metrics_T2 = { "红外报警1", "红外报警2"};
    public static String[] Metrics_T3 = { "杆塔倾斜度"};
    public static String[] Metrics_T4 = { "杆塔倾斜度", "导线温度", "功率限额", "实时电流", "最大允许电流", "热稳限额", "电池电压状态", "在线状态" };
    public static String[] Metrics_T5 = { "温度", "湿度", "风速", "风向", "雨量", "气压", "日照", "导线温度", "功率限额", "实时电流", "最大允许电流", "热稳限额", "覆冰厚度", "导线弧垂", "电池电压状态", "在线状态" };
    public static String[] Metrics_T6 = { "温度", "湿度", "导线温度", "实时电流", "覆冰厚度", "导线弧垂", "杆塔倾斜度", "红外报警1", "红外报警2" };

    
	public Common()
	{
		//
		//TODO: 在此处添加构造函数逻辑
		//
	}
    public static Boolean checkAbnormal(String s)
    {
        return s.StartsWith("[a]");
    }
    public static String removeTag(String s)
    {
        return s.Substring(3, s.Length - 3);
    }
}
